/* Variables & Theme */
:root {
    --page-bg: #ffffff;
    --card-bg: #F5F5F5;
    --input-bg: #FFFFFF;
    --text-primary: #464646;
    --text-secondary: #808080;
    --btn-black: #1C1C1C;
    --placeholder: #C1C1C1;
    --highlight: #FF2D55;
    --border-color: #E0E0E0;
    
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0px 6px 6px rgba(0, 0, 0, 0.25);
    
    --radius-mobile-card: 61px 61px 0px 0px;
    --radius-input: 63px;
    --radius-btn: 54px;
    --radius-card: 24px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--page-bg);
    min-height: 100-vh;
}

/* Layout */
.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.welcome-section-desktop {
    display: none;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography */
.welcome-text {
    padding: 0 30px;
    margin-top: 24px;
}

.welcome-text h1 {
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2;
}

.welcome-text span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
}

/* Card Container */
.login-card {
    background-color: var(--card-bg);
    margin-top: 24px;
    border-radius: var(--radius-mobile-card);
    padding: 24px;
    flex: 1;
    min-height: 647px;
}

.login-card h2 {
    font-size: 25px;
    margin: 24px 0 25px 24px;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
    width: 319px;
}

.input-field {
    width: 100%;
    height: 69px;
    padding: 0 12px 0 50px;
    background: white;
    border: 0.5px solid var(--border-color);
    border-radius: var(--radius-input);
    font-size: 1rem;
    outline: none;
}

.input-field::placeholder {
    color: var(--placeholder);
}

.input-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 19px;
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    width: 319px;
    height: 65px;
    margin-top: 10px;
    background-color: var(--btn-black);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    opacity: 0.8;
    cursor: wait;
}

.btn-google {
    width: 319px;
    height: 65px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Message Styles */
.error-message, .success-message {
    width: 319px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.error-message {
    background-color: #fee;
    color: #d33;
    border: 1px solid #fcc;
}

.success-message {
    background-color: #efe;
    color: #3a3;
    border: 1px solid #cfc;
}

.btn-loader {
    font-size: 14px;
}

/* Input Validation Styles */
.input-field.error {
    border-color: #d33;
    background-color: #fee;
}

.input-field.error:focus {
    border-color: #d33;
    box-shadow: 0 0 0 2px rgba(211, 51, 51, 0.1);
}

.input-field:focus {
    border-color: var(--btn-black);
    box-shadow: 0 0 0 2px rgba(28, 28, 28, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn-primary.loading .btn-loader {
    animation: pulse 1.5s infinite;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    width: 319px;
    margin: 24px 0;
    color: #666;
    font-size: 0.875rem;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 8px;
}

.signup-link {
    color: var(--highlight);
    font-weight: 600;
    text-decoration: none;
}

/* Tablet & Desktop Media Queries */
@media (min-width: 768px) {
    body { background-color: var(--card-bg); }
    .login-card {
        background-color: white;
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-lg);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 48px;
        min-height: auto;
    }
    .input-group, .btn-primary, .btn-google, .divider {
        width: 100%;
        max-width: 400px;
    }
    .error-message, .success-message {
        width: 100%;
        max-width: 400px;
    }
}

@media (min-width: 1280px) {
    body { background-color: white; }
    .main-container {
        flex-direction: row;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 48px;
        justify-content: space-between;
    }
    .welcome-section-desktop {
        display: flex;
        flex: 1;
        height: 600px;
        background: #F0F0F0;
        border-radius: 24px;
        align-items: center;
        justify-content: center;
        margin-right: 48px;
    }
    .auth-wrapper { max-width: 500px; flex: 1; }
    .login-card { 
        background: transparent; 
        box-shadow: none; 
        padding: 0;
    }
    .login-card h2 { display: none; }
    .auth-form { align-items: flex-start; }
    .input-group, .btn-primary, .btn-google, .divider { max-width: 100%; }
}