/* ============================================
   Login Page - CSS
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
/* 
body::before {
    content: "";
    position: fixed;
    inset: -30%;
    background: inherit;
    filter: blur(90px);
    opacity: 0.7;
    z-index: -1;
  } */

body {
    font-family: 'Sora', 'Manrope', sans-serif;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #05060a;
    background-image:
      radial-gradient(
        40% 70% at 15% 30%,
        rgba(180, 120, 255, 0.20),
        transparent 75%
      ),
      radial-gradient(
        40% 70% at 85% 30%,
        rgba(120, 180, 255, 0.20),
        transparent 75%
      ),
      radial-gradient(
        40% 80% at 50% 90%,
        rgba(120, 255, 240, 0.20),
        transparent 78%
      );
    background-repeat: no-repeat;
    animation: glowMove 10s ease-in-out infinite alternate;
}

/* Page Wrapper */
.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background-color: transparent;
    overflow: hidden;
}

/* Container */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 56px 40px;
    box-shadow: 0px 40px 80px -20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 440px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    z-index: 1;
    overflow-y: auto;
}

/* Form Wrapper */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Logo */
.logo {
    width: 180px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header */
.header {
    width: 100%;
    height: 44px;
}

.header h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 36px;
    text-align: center;
    color: #fff;
    letter-spacing: -0.75px;
    margin: 0;
}

/* Form Content */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    height: 36px;
    width: 100%;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-btn img {
    width: 16px;
    height: 16px;
}

.social-btn span {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    color: #fff;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 31px;
}

.divider .line {
    flex: 1;
    height: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.divider span {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Field Group */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Field Label */
.field-label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 16.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.55px;
    margin-bottom: 8px;
}

.required-star {
    color: #fb2c36;
    margin-left: 2px;
    font-size: 13px;
    line-height: 1;
}

/* Label Row */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Forgot Link */
.forgot-link {
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    color: #056bf1;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

/* Input Field */
.input-field {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 4px 48px 4px 12px;
    overflow: hidden;
}

.input-field input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 0;
}

.input-field input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Override browser autofill styles */
.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover,
.input-field input:-webkit-autofill:focus,
.input-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.03) inset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.03) inset !important;
    background-color: transparent !important;
    background-clip: content-box !important;
    border: none !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-field input:-webkit-autofill::first-line {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

.toggle-password .eye-icon {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.toggle-password:hover .eye-icon {
    color: rgba(255, 255, 255, 0.8);
}

.toggle-password .hidden {
    display: none;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(180deg, #056bf1 0%, #06c7f2 100%);
    border: none;
    border-radius: 10px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    cursor: pointer;
    box-shadow: 0px 0px 15px 0px rgba(5, 107, 241, 0.4), 0px 0px 30px 0px rgba(6, 199, 242, 0.2);
    transition: opacity 0.2s;
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.submit-btn:disabled,
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(180deg, #111827 0%, #020617 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.toast__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, rgba(254, 226, 226, 0.35), transparent 55%),
                linear-gradient(145deg, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
}

.toast__icon-symbol {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

.toast__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.toast__code {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
}

.toast__title {
    font-size: 15px;
    font-weight: 700;
    color: #f9fafb;
}

.toast__message {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(209, 213, 219, 0.95);
}

.toast__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    margin-left: 8px;
}

.toast__close:hover {
    color: #fff;
}

/* Signup Link */
.signup-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    flex-wrap: wrap;
}

.signup-link p {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    line-height: 22.75px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0;
}

.signup-link .link {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #056bf1;
    text-decoration: none;
}

.signup-link .link:hover {
    text-decoration: underline;
}

@keyframes glowMove {
    0% {
      background-position:
        0% 0%,
        100% 0%,
        50% 100%;
    }
    100% {
      background-position:
        10% 10%,
        90% 5%,
        50% 95%;
    }
  }

/* Responsive Design */
@media (max-height: 800px) {
    .container {
        padding: 40px 32px;
        border-radius: 24px;
    }

    .form-wrapper {
        gap: 24px;
    }

    .header {
        height: auto;
        margin-bottom: -8px;
    }

    .header h3 {
        font-size: 26px;
        line-height: 32px;
    }

    .form-content {
        gap: 20px;
    }

    .form-fields {
        gap: 20px;
    }
}

@media (max-height: 700px) {
    .container {
        padding: 32px 28px;
    }

    .form-wrapper {
        gap: 20px;
    }

    .logo {
        width: 160px;
        height: 36px;
    }

    .header h3 {
        font-size: 24px;
        line-height: 28px;
    }

    .form-content {
        gap: 16px;
    }

    .form-fields {
        gap: 16px;
    }

    .divider {
        height: 24px;
        gap: 12px;
    }
}

@media (max-height: 600px) {
    .container {
        padding: 24px 24px;
    }

    .form-wrapper {
        gap: 16px;
    }

    .logo {
        width: 140px;
        height: 32px;
    }

    .header h3 {
        font-size: 22px;
        line-height: 26px;
    }

    .signup-link {
        gap: 6px;
    }

    .signup-link p {
        font-size: 12px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100vw - 32px);
        padding: 40px 24px;
        border-radius: 24px;
    }

    .header h3 {
        font-size: 26px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 32px 20px;
    }

    .logo {
        width: 120px;
        height: 28px;
    }

    .social-buttons {
        gap: 8px;
    }

    .social-btn span {
        font-size: 11px;
    }
}
