/* CSS for Authentication Pages */
:root {
    --primary-color: #000;
    --accent-color: #0071e3;
    --bg-color: #f5f5f7;
    --card-bg: #fff;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #d2d2d7;
    --error-color: #ff3b30;
    --input-bg: #fff;
    --input-border: #d2d2d7;
    --radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 100vh;
    overflow: hidden;
}

/* Split Layout */
.login-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.login-sidebar {
    width: 480px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    justify-content: center;
    overflow-y: auto;
    box-shadow: 1px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

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

.login-header a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.login-header img {
    height: 32px;
}

.login-header span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.login-content {
    max-width: 360px;
    width: 100%;
}

.login-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.login-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Form Elements */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    background: var(--input-bg);
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-form input[type="file"] {
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed var(--border-color);
    cursor: pointer;
    line-height: 1.5;
}

.auth-form input[type="file"]:hover {
    background: #eef;
    border-color: var(--accent-color);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

#student-upload-group {
    display: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #005bb5;
}

.login-extra-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.login-extra-actions.centered {
    justify-content: center;
    margin-top: 20px;
}

.forgot-password-link {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}

.divider {
    margin: 24px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-google {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s;
}

.btn-google:hover {
    background: #f9f9f9;
}

.login-footer {
    margin-top: 32px;
    text-align: center;
}

.login-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Success Message */
#success-message {
    display: none;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

#success-message p {
    margin: 0;
    color: #2e7d32;
}


/* Showcase Area (Right Side) */
.login-showcase {
    flex: 1;
    background: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
}

.showcase-container {
    max-width: 800px;
    width: 100%;
}

/* Featured Section */
.showcase-featured {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    color: white;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-featured h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
}

.showcase-featured p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: white;
    color: var(--accent-color);
}

/* Feed Section */
.showcase-feed h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feed-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feed-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.feed-info {
    padding: 16px;
}

.feed-info span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-info h4 {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-color);
}

/* Suggestion Section */
.showcase-suggestion {
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 100px;
}

.showcase-suggestion p {
    opacity: 0.8;
    margin-bottom: 0;
    /* Removed margin to align middle */
}

.btn-suggestion {
    background: white;
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-suggestion:hover {
    transform: scale(1.05);
}

/* Response */
@media (max-width: 1100px) {
    .login-sidebar {
        width: 400px;
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .login-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    .login-sidebar {
        width: 100%;
        min-height: 100vh;
        box-shadow: none;
    }

    .login-showcase {
        display: none;
    }
}