/* =====================================================================
   WEDŪ CLIENT PORTAL - LOGIN PAGE STYLES
   Character animations and login form
   ===================================================================== */

:root {
    --wedu-primary: #F05F23;
    --wedu-primary-light: #FF7A45;
    --wedu-primary-dark: #D94D1A;
    --wedu-secondary: #ACA9AA;
    --wedu-dark: #1a1a1a;
    --wedu-text: #ffffff;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =====================================================================
   LOGIN PAGE WRAPPER
   ===================================================================== */

.wedu-login-wrapper {
    font-family: 'DM Sans', -apple-system, sans-serif;
}

.wedu-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.wedu-login-box {
    display: flex;
    flex-direction: row-reverse;
    background: #2d2d2d;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(240, 95, 35, 0.15);
}

/* =====================================================================
   CHARACTERS SECTION
   ===================================================================== */

.wedu-characters-section {
    flex: 1;
    background: linear-gradient(135deg, #e5e3e8 0%, #d5d3d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.wedu-characters-container {
    position: relative;
    width: 500px;
    height: 306px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Purple Character */
.wedu-purple {
    position: absolute;
    width: 140px;
    height: 300px;
    background: #621bfe;
    border: 2px solid #000;
    left: 0;
    top: 0;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wedu-purple .wedu-eyebrow {
    position: absolute;
    width: 18px;
    height: 3px;
    background: #000;
    top: 4%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.wedu-purple .wedu-eyebrow-left { left: 27%; }
.wedu-purple .wedu-eyebrow-right { left: 59%; }

.wedu-purple .wedu-eye {
    position: absolute;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    top: 9%;
    overflow: hidden;
}

.wedu-purple .wedu-eye-left { left: 25%; }
.wedu-purple .wedu-eye-right { left: 60%; }

.wedu-purple .wedu-iris {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.wedu-iris-purple {
    background: radial-gradient(circle, #a78bfa 0%, #7c3aed 100%);
}

.wedu-purple .wedu-pupil {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.wedu-purple .wedu-mouth {
    position: absolute;
    width: 30px;
    height: 3px;
    background: #000;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Black Character */
.wedu-black {
    position: absolute;
    width: 90px;
    height: 200px;
    background: #000;
    border: 2px solid #000;
    bottom: -1px;
    right: 21%;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wedu-black .wedu-eyebrow {
    position: absolute;
    width: 14px;
    height: 2px;
    background: #fff;
    top: 6%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.wedu-black .wedu-eyebrow-left { left: 56%; }
.wedu-black .wedu-eyebrow-right { left: 26%; }

.wedu-black .wedu-eye {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 11%;
    overflow: hidden;
}

.wedu-black .wedu-eye-left { left: 59%; }
.wedu-black .wedu-eye-right { left: 29%; }

.wedu-iris-gray {
    background: radial-gradient(circle, #9ca3af 0%, #6b7280 100%);
}

.wedu-black .wedu-pupil {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.wedu-black .wedu-mouth {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    top: 21%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Yellow Character */
.wedu-yellow {
    position: absolute;
    width: 90px;
    height: 135px;
    background: #ecbf00;
    border-radius: 50px 50px 0 0;
    bottom: -1px;
    right: 10%;
    z-index: 4;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wedu-yellow .wedu-eyebrow {
    position: absolute;
    width: 12px;
    height: 3px;
    background: #000;
    top: 10%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.wedu-yellow .wedu-eyebrow-left { left: 22%; }
.wedu-yellow .wedu-eyebrow-right { left: 58%; }

.wedu-yellow .wedu-eye {
    position: absolute;
    width: 11px;
    height: 11px;
    background: white;
    border-radius: 50%;
    top: 16%;
    overflow: hidden;
}

.wedu-yellow .wedu-eye-left { left: 22%; }
.wedu-yellow .wedu-eye-right { left: 60%; }

.wedu-iris-brown {
    background: radial-gradient(circle, #92400e 0%, #78350f 100%);
}

.wedu-yellow .wedu-pupil {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.wedu-yellow .wedu-mouth {
    position: absolute;
    width: 35px;
    height: 18px;
    border: 3px solid #000;
    border-top: none;
    border-radius: 0 0 100px 100px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* Orange Character */
.wedu-orange {
    position: absolute;
    width: 220px;
    height: 100px;
    background: #ff6900;
    border-radius: 100px 100px 0 0;
    bottom: -2px;
    left: 24%;
    box-shadow: 0 0 10px 0 #000;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wedu-orange .wedu-eyebrow {
    position: absolute;
    width: 16px;
    height: 3px;
    background: #000;
    top: 12%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.wedu-orange .wedu-eyebrow-left { left: 33%; }
.wedu-orange .wedu-eyebrow-right { left: 51%; }

.wedu-orange .wedu-eye {
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 20%;
    overflow: hidden;
}

.wedu-orange .wedu-eye-left { left: 33%; }
.wedu-orange .wedu-eye-right { left: 53%; }

.wedu-iris-orange {
    background: radial-gradient(circle, #fb923c 0%, #f97316 100%);
}

.wedu-orange .wedu-pupil {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

.wedu-orange .wedu-mouth {
    position: absolute;
    width: 25px;
    height: 12px;
    border: 3px solid #000;
    border-top: none;
    border-radius: 0 0 100px 100px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

/* =====================================================================
   EMOTION STATES
   ===================================================================== */

.wedu-mouth-neutral {
    width: 30px !important;
    height: 3px !important;
    border: none !important;
    background: #000 !important;
    border-radius: 0 !important;
}

.wedu-characters-container.state-happy .wedu-mouth {
    border-top: none !important;
    border-radius: 0 0 100px 100px !important;
    background: transparent !important;
}

.wedu-purple.state-happy .wedu-mouth {
    width: 35px !important;
    height: 15px !important;
    border: 3px solid #000 !important;
}

.wedu-black.state-happy .wedu-mouth {
    width: 25px !important;
    height: 12px !important;
    border: 3px solid #fff !important;
}

.wedu-yellow.state-happy .wedu-mouth {
    width: 40px !important;
    height: 20px !important;
    border: 4px solid #000 !important;
}

.wedu-orange.state-happy .wedu-mouth {
    width: 30px !important;
    height: 15px !important;
    border: 3px solid #000 !important;
}

.wedu-characters-container.state-sad .wedu-mouth {
    border-bottom: none !important;
    border-radius: 100px 100px 0 0 !important;
    background: transparent !important;
    transform: translateX(-50%) rotate(180deg) !important;
}

.wedu-characters-container.state-sad .wedu-eyebrow-left {
    transform: rotate(-15deg);
}

.wedu-characters-container.state-sad .wedu-eyebrow-right {
    transform: rotate(15deg);
}

.wedu-characters-container.state-lookaway .wedu-char {
    transform: scaleX(-1);
}

.wedu-characters-container.state-lookaway .wedu-pupil {
    transform: translate(-50%, -50%) translateX(-3px) !important;
}

.wedu-characters-container.state-closed .wedu-eye {
    height: 2px !important;
    transition: height 0.1s ease;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */

@keyframes weduBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-20px) scale(1.05); }
    50% { transform: translateY(-10px) scale(1.02); }
    75% { transform: translateY(-15px) scale(1.03); }
}

.wedu-char.bounce {
    animation: weduBounce 0.8s ease-in-out;
}

.wedu-purple.bounce { animation-delay: 0s; }
.wedu-black.bounce { animation-delay: 0.1s; }
.wedu-yellow.bounce { animation-delay: 0.2s; }
.wedu-orange.bounce { animation-delay: 0.3s; }

@keyframes weduHeadShake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(6deg); }
    45% { transform: rotate(-5deg); }
    60% { transform: rotate(4deg); }
    75% { transform: rotate(-3deg); }
    90% { transform: rotate(2deg); }
}

.wedu-characters-container.head-shake {
    animation: weduHeadShake 0.6s ease-in-out;
}

/* =====================================================================
   FORM SECTION
   ===================================================================== */

.wedu-form-section {
    flex: 1;
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #2d2d2d;
}

.wedu-logo-box {
    margin-bottom: 35px;
}

.wedu-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--wedu-primary) 0%, var(--wedu-primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    font-family: 'Lexend Deca', sans-serif;
}

.wedu-form-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--wedu-text);
    font-family: 'Lexend Deca', sans-serif;
}

.wedu-form-subtitle {
    color: var(--wedu-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    font-family: 'DM Sans', sans-serif;
}

.wedu-login-form {
    max-width: 100%;
}

.wedu-form-group {
    margin-bottom: 24px;
}

.wedu-form-input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-bottom: 2px solid var(--wedu-secondary);
    background: transparent;
    font-size: 16px;
    color: var(--wedu-text);
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.wedu-form-input:focus {
    outline: none;
    border-bottom-color: var(--wedu-primary);
}

.wedu-form-input::placeholder {
    color: var(--wedu-secondary);
}

.wedu-password-wrapper {
    position: relative;
}

.wedu-password-toggle {
    position: absolute;
    right: 0;
    top: 16px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-size: 20px;
}

.wedu-password-toggle .dashicons {
    font-size: 20px;
    color: #ffffff;
}

.wedu-password-toggle:hover {
    opacity: 0.7;
}

.wedu-form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.wedu-forgot-link {
    color: var(--wedu-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.wedu-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--wedu-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Lexend Deca', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wedu-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 95, 35, 0.4);
}

.wedu-submit-btn:active {
    transform: translateY(0);
}

.wedu-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wedu-alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #fca5a5;
}

.wedu-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #86efac;
}

.wedu-spinner {
    border: 3px solid rgba(240, 95, 35, 0.3);
    border-top: 3px solid var(--wedu-primary);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .wedu-login-box {
        flex-direction: column;
    }
    
    .wedu-characters-section {
        min-height: 300px;
        order: 2;
    }
    
    .wedu-form-section {
        padding: 50px 30px;
        order: 1;
    }
    
    .wedu-characters-container {
        width: 100%;
        max-width: 400px;
    }
}