/* CSS for KIS Jeju Custom Login Page */

:root {
    --primary-color: #08327c;
    --accent-color: #00b4d8;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --border-color: #e5e7eb;
    --hover-bg: #f9fafb;
}

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

body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Panel - Split Screen Image */
.login-left-wrapper {
    position: relative;
    width: 55%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
}

.login-left-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
    z-index: 1;
}

.login-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 98.2%; /* Slightly smaller width to expose the accent layer underneath */
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
    z-index: 2;
    transition: transform 0.5s ease;
    animation: zoomIn 1.5s ease-out;
}

.login-left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 50, 124, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 3;
}

/* Right Panel - Login Card */
.login-right {
    position: relative;
    width: 45%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 5;
    animation: fadeInRight 0.8s ease-out;
}

.login-top-logo {
    position: absolute;
    top: 40px;
    right: 40px;
}

.login-top-logo img {
    max-height: 60px;
    width: auto;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 80%;
    justify-content: space-between;
}

.login-header {
    margin-bottom: 40px;
}

.welcome-text {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.school-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.login-instructions {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Google Login Button */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.google-login-btn:hover {
    background-color: var(--hover-bg);
    border-color: #d1d5db;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.google-login-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Errors */
.login-error {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 24px;
    border-left: 4px solid var(--error-text);
    animation: shake 0.5s ease-in-out;
}

/* Footer */
.login-footer {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    margin-top: auto;
}

/* Animations */
@keyframes zoomIn {
    from {
        transform: scale(1.08);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-left-wrapper {
        width: 45%;
    }
    .login-right {
        width: 55%;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow: auto;
    }
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .login-left-wrapper {
        width: 100%;
        height: 240px;
    }
    .login-left-accent {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    .login-left {
        width: 100%;
        height: 97%;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    .login-right {
        width: 100%;
        height: auto;
        flex-grow: 1;
        padding: 40px 20px;
    }
    .login-card {
        height: auto;
        padding: 0;
    }
    .login-header {
        margin-bottom: 24px;
        text-align: center;
    }
    .school-name {
        font-size: 2.2rem;
    }
    .login-instructions {
        text-align: center;
    }
    .login-footer {
        margin-top: 40px;
    }
}
