 
:root {
     
    --bg-body: #0e1421;        
    --bg-nav: rgba(17, 24, 39, 0.85);  
    --bg-input: #0e1321;
    --primary-color: #6366f1;  
    --secondary-color: #293447;  
    --text-main: #f9fafb;      
    --text-muted: #bcc3cf;     
    --hover-bg: #1f2937;
    --text-link: #a5b4fc;
    --border-main: #36455f;
    --border-V2: #455673;
    --border-V3: #566a8d;
    
    --nav-height: 60px;
    --border-radius: 8px;
    --border-radiusV2: 12px;
    --border-radiusV3: 16px;
    --container-width: 1280px;

    --error-color: #ef4444;

    
     
    --nav-height: 65px;
    --border-radius: 6px;
    --container-width: 1430px;
    
     
    --font-family: 'Open Sans', sans-serif;
}

 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

 
header {
    position: sticky;  
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-nav); 
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.8px;   
    
      
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        var(--secondary-color) 20%, 
        var(--secondary-color) 80%, 
        transparent 100%
    );
    
    opacity: 0.8;   
    
}

 
header.scrolled {
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
}

header.scrolled::after {
    opacity: 0.8;   
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        var(--secondary-color) 20%, 
        var(--secondary-color) 80%, 
        transparent 100%
    );
}

.navbar {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

 
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    background-color: var(--hover-bg);
}

 
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

 
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    width: 480px;
    transition: border-color 0.2s;
}

.search-container:focus-within {
    border-color: var(--primary-color);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    width: 100%;
    font-size: 0.9rem;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.shortcut-badge {
    background-color: var(--hover-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 6px;
    white-space: nowrap;
    font-family: monospace;
    pointer-events: none;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius);
    padding: 8px 16px;
}

 
.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--text-main);
}

 
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #4f46e5;  
}

 
.hero {
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.btn i {
    margin-right: 8px;
    vertical-align: middle;
}




.auth-main {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-main::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 400px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(156, 163, 175, 0.1), transparent 100%);
    filter: blur(80px);
    border-radius: 50% 50% 0 0;
    z-index: 0;
    pointer-events: none;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
}

.auth-card {
    position: relative;
    width: 460px;
    background: transparent;
    border-radius: 12px;
    padding: 2px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.1); 
    border: 1px solid var(--secondary-color);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--primary-color), 
        transparent 30%,
        transparent 50%,
        var(--primary-color),
        transparent 80%
    );
    animation: rotate-border 4s linear infinite;
    z-index: -1;
}

/* Siguraduhing nandito itong Keyframes */
@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.auth-content {
    position: relative;
    background: var(--bg-body);  
    border-radius: 10px;
    padding: 40px;
    height: 100%;
    width: 100%;
    z-index: 2;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(169 177 251 / 8%), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(169 177 251 / 8%), transparent 40%);
}

.auth-logo {
    display: block;
    width: 70px;
    height: auto;
    margin: 0 auto 25px auto;
    border-radius: 15px;
    box-shadow: 0 12px 24px -8px rgba(209, 213, 219, 0.2);
}
.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
    text-align: center;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.link-highlight {
    color: var(--text-link);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 16px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    height: 50px;
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-V2);

    padding: 0 15px 0 45px;
    border-radius: var(--border-radiusV2);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-V2);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.input-group input::placeholder {
    color: var(--border-V2);
    opacity: 1;
}

.btn-full {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
}

.social-auth {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-social {
    flex: 1 1 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: var(--secondary-color);
    border: 1.5px solid var(--border-main);
    color: var(--text-muted);
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-social i {
    font-size: 1rem;
    line-height: 0;
}

.btn-social:hover {
    background-color: var(--secondary-color);
    color: var(--text-main);
    border-color: var(--border-V3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.remember-me {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
    font-size: 0.9rem;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.remember-me span {
    position: relative;
    padding-left: 30px;
}

.remember-me span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remember-me input:checked + span::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me span::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 40%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.remember-me input:checked + span::after {
    opacity: 1;
}

.forgot-pass {
    color: var(--text-link);
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 9999;
    transition: width 0.4s ease-in-out;
 }

 .input-group.error input {
    border-color: var(--error-color);
}

.input-group.error .input-icon {
    color: var(--error-color);
}

.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.input-group.error .error-msg {
    display: block;
}

.remember-me.error span::before {
    border-color: var(--error-color);
    box-shadow: 0 0 0 1px var(--error-color);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.remember-me.error {
    color: var(--error-color);
}

.remember-me.error a {
    color: var(--error-color) !important;
}

 .auth-options {
    flex-wrap: wrap;
}

 #terms-error {
    width: 100%;  
    margin-top: 5px;
    display: none;
}

 .remember-me.error ~ #terms-error {
    display: block;
}
.char-count {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-input);  
    padding-left: 5px;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.2s;
    pointer-events: none;
}

.char-count.visible {
    opacity: 1;
}

 #username {
    padding-right: 55px; 
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--border-V2), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid var(--border-main);
    user-select: none;
    transition: box-shadow 0.2s;
}

.avatar-circle:hover {
    box-shadow: 0 0 0 3px rgba(206, 206, 255, 0.3);
}

.profile-wrapper {
    position: relative;
    cursor: pointer;
}

/* Yung maliit na bilog sa lower-right */
.avatar-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color); /* Kulay ng bilog */
    border: 2px solid var(--bg-nav); /* Border na kakulay ng header para may "cutout" effect */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Yung hugis arrow/patusok sa loob */
.indicator-icon {
    width: 10px;
    height: 10px;
    fill: var(--text-muted);
    transition: fill 0.2s ease;
}

 .profile-wrapper:hover .indicator-icon {
    fill: var(--text-main);
}

 .avatar-indicator {
    width: 20px;
    height: 20px;
}

.profile-wrapper:hover .arrow-down {
    border-top-color: var(--text-main);
}

.dropdown-menu {
    position: absolute;
    top: 60px;  
    right: 0;
    width: 250px;
    background-color: var(--bg-input);  
    border: 1px solid var(--border-main);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px;
    
     opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

 .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

 .dropdown-header {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

 .dropdown-divider {
    height: 1px;
    background-color: var(--border-main);
    margin: 8px 0;
}

 .dropdown-links li a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-links li a:hover {
    background-color: var(--hover-bg);
    color: var(--text-main);
}

 .link-danger {
    color: var(--error-color) !important;
}

.link-danger:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.helper-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}