﻿/***************************************************
  ROOT CONTAINER - SAFE NAMESPACE
****************************************************/
.eduva-login {
    width: 100%;
    min-height: 100vh;
    position: relative;
    /*background: #f8fafc;*/
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

    /***************************************************
  WAVE BACKGROUND
****************************************************/
    .eduva-login .wave-bg {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 40px 20px;
    }

    .eduva-login .wave-pattern {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .eduva-login svg {
        width: 100%;
        height: 100%;
    }

    /*    **************************************************
  CONTENT LAYOUT
****************************************************/
    .eduva-login .content-layer {
        position: relative;
        z-index: 10;
        max-width: 1200px;
        margin: 0 auto;
    }

    .eduva-login .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

@media (max-width: 992px) {
    .eduva-login .grid-container {
        grid-template-columns: 1fr;
    }
}

/***************************************************
  LEFT PANEL
****************************************************/
.eduva-login .left-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eduva-login .branding {
    color: #1f2937;
}

.eduva-login .brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 20px;
}

.eduva-login .brand-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    color: transparent;
}

.eduva-login .portal-title {
    font-size: 32px;
    font-weight: 700;
}

.eduva-login .portal-desc {
    font-size: 15px;
    color: #64748b;
}

.eduva-login .features-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.eduva-login .feature-box {
    background: rgba(255,255,255,0.85);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.eduva-login .feature-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

.eduva-login .feature-title {
    font-size: 12px;
    font-weight: bold;
}

.eduva-login .feature-sub {
    font-size: 11px;
    color: #64748b;
}

/***************************************************
  RIGHT PANEL LOGIN
****************************************************/
.eduva-login .right-panel {
    display: flex;
    flex-direction: column;
}

.eduva-login .login-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.eduva-login .login-header {
    text-align: center;
    margin-bottom: 20px;
}

.eduva-login .login-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.eduva-login .portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

.eduva-login .brand-color {
    color: #2563eb;
}

/***************************************************
  FORM
****************************************************/
.eduva-login .label {
    font-size: 13px;
    font-weight: bold;
    margin-top: 12px;
    color: #1f2937;
}

.eduva-login .input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

    .eduva-login .input:focus {
        border-color: #2563eb;
    }

.eduva-login .password-wrapper {
    position: relative;
}

.eduva-login .toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
}

/***************************************************
  BUTTONS
****************************************************/
.eduva-login .login-btn {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: baseline;
}

    .eduva-login .login-btn:hover {
        transform: scale(1.03);
    }

.eduva-login .google-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
}

.eduva-login .google-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/***************************************************
  LINKS + SMALL TEXT
****************************************************/
.eduva-login .link {
    color: #2563eb;
    text-decoration: none;
}

.eduva-login .row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eduva-login .between {
    justify-content: space-between;
}

.eduva-login .check-row input {
    margin-right: 5px;
}

.eduva-login .error-box {
    margin-top: 10px;
    padding: 10px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 13px;
}

.eduva-login .divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .eduva-login .divider span {
        background: white;
        padding: 0 10px;
        font-size: 12px;
        color: #6b7280;
    }

/***************************************************
  MOBILE FEATURES
****************************************************/
.eduva-login .mobile-features {
    display: none;
}

@media (max-width: 992px) {
    .eduva-login .mobile-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
}

/***************************************************
  OTHER PORTALS
****************************************************/
.eduva-login .other-login {
    text-align: center;
    margin-top: 20px;
}

.eduva-login .portal-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.eduva-login .switch-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
}

.eduva-login .signup {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}


/***************************************************
  EXTRA ADTUSTMENT
****************************************************/
/* Divider container */
.eduva-login .eduva-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

/* The horizontal line */
.eduva-login .eduva-divider-line {
    border-top: 1px solid #ccc;
    width: 100%;
    height: 1px;
}

/* Text on top of the line */
.eduva-login .eduva-divider-text {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 10px;
    color: #6b7280; /* gray-500 */
    font-size: 12px;
    font-weight: 500;
}

/* Google button */
.eduva-login .google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #d1d5db; /* gray-300 */
    color: #374151; /* gray-700 */
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    transform: scale(1);
}

    /* Hover: scale 105% (like Tailwind hover:scale-105) */
    .eduva-login .google-btn:hover {
        border-color: #9ca3af; /* gray-400 */
        background: #f9fafb; /* near-gray-50 */
        transform: scale(1.05);
    }

/* Google icon size */
.eduva-login .google-icon {
    width: 18px;
    height: 18px;
}


/* Row layout */
.eduva-login .eduva-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px; /* text-xs */
    margin-top: 6px;
}

/* Checkbox + label alignment */
.eduva-login .eduva-remember-checkbox {
    display: flex;
    align-items: center; /* middle align */
    cursor: pointer;
    gap: 6px;
    color: #374151; /* gray-700 */
    font-weight: 500;
}

    /* Checkbox styling */
    .eduva-login .eduva-remember-checkbox input[type="checkbox"] {
        width: 14px; /* equal to w-3.5 */
        height: 14px;
        cursor: pointer;
        accent-color: #2563eb; /* blue-600 */
    }

/* Forgot password link */
.eduva-login .eduva-forgot-link {
    color: #2563eb; /* blue-600 */
    font-weight: 600; /* bold */
    text-decoration: none;
    transition: color 0.2s ease;
}

    /* Hover effect */
    .eduva-login .eduva-forgot-link:hover {
        color: #1d4ed8; /* blue-700 */
    }


/* Label for inputs */
.eduva-login .eduva-input-label {
    display: flex;
    align-items: center;
    font-size: 14px; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #374151; /* gray-700 */
    margin-bottom: 6px;
    gap: 6px; /* spacing between icon + text */
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Icon inside label */
    .eduva-login .eduva-input-label i {
        font-size: 12px;
        color: #2563eb; /* blue-600 */
        display: flex;
        align-items: center;
    }

/* Input fields */
.eduva-login .eduva-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #d1d5db; /* gray-300 */
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

    /* Input focus */
    .eduva-login .eduva-input:focus {
        border-color: #2563eb; /* blue-600 */
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

/* Password wrapper to align toggle button */
.eduva-login .eduva-password-wrapper {
    position: relative;
}

/* Toggle eye button */
.eduva-login .eduva-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280; /* gray-500 */
    font-size: 14px;
    padding: 0;
}

    /* Hover effect for toggle button */
    .eduva-login .eduva-password-toggle:hover {
        color: #374151; /* gray-700 */
    }


.rf-login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/*LEFT*/
/* Parent protection */
.eduva-login {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

    /* Left panel styling */
    .eduva-login .left-panel {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 24px;
        /* background-color: rgba(255,255,255,0.85); */
        border-radius: 24px;
        /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
        /* backdrop-filter: blur(8px); */
        /* max-width: 480px; */
    }

    /* Brand icon */
    .eduva-login .brand-icon {
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        color: white;
        font-size: 32px;
        margin-bottom: 16px;
        /* Floating animation */
        animation: float 3s ease-in-out infinite;
    }

/* Floating keyframes */
@@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Titles & Description */
.eduva-login .brand-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

..eduva-login .portal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 4px 0 8px 0;
}

.eduva-login .portal-desc {
    font-size: 18px;
    color: #4b5563;
    margin: 0 0 25px 0;
}

/* Features grid */
.eduva-login .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

/* Feature box */
.eduva-login .feature-box {
    text-align: center;
    padding: 16px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover effect */
    .eduva-login .feature-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }

/* Feature icon */
.eduva-login .feature-icon {
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 8px;
}

/* Feature title */
.eduva-login .feature-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

/* Feature subtitle */
.eduva-login .feature-sub {
    font-size: 12px;
    color: #4b5563;
}


/*submit button*/
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: none;
    /* ⭐ These 3 lines fix the alignment completely */
    display: inline-flex;
    align-items: center; /* ← Centers icon + text vertically */
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.2s ease, transform 0.15s ease;
}

    .login-btn i {
        font-size: 1rem;
        .eduva-login line-height: 1; /* ⭐ Prevents icon from sitting higher */
    }

    .login-btn span {
        line-height: 1; /* ⭐ Ensures exact matching height with icon */
    }

/* Hide the left panel container on small screens */
@media (max-width: 768px) {
    .eduva-login > .left-panel,
    .eduva-login[style*="display: flex"] {
        display: none !important;
    }
}
