/* 
* CampusUdaan - Authentication Pages Stylesheet
* Beautiful and interactive login & signup pages with animations
*/

/* ===== VARIABLES ===== */
:root {
    --primary-color: #4CAF91;
    --secondary-color: #FF7F50;
    --background-color: #F9FAFB;
    --text-color: #333333;
    --body-text-color: #555555;
    --light-gray: #F9FAFB;
    --medium-gray: #E0E0E0;
    --dark-gray: #555555;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== AUTH SECTION STYLES ===== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(76, 175, 145, 0.05), rgba(255, 127, 80, 0.05));
}

/* College Login Styles */
.college-auth-section {
    background: linear-gradient(135deg, rgba(76, 175, 145, 0.1), rgba(76, 175, 145, 0.05));
}

/* Employee Login Styles */
.emp-auth-section {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.1), rgba(255, 127, 80, 0.05));
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

/* Access Badge Styles */
.restricted-badge,
.employee-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: badgePulse 2s infinite;
}

.restricted-badge {
    background-color: #FFEBEE;
    color: #D32F2F;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.employee-badge {
    background-color: #E8F5E9;
    color: #388E3C;
    border: 1px solid rgba(56, 142, 60, 0.3);
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.college-auth-card {
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(76, 175, 145, 0.15);
}

.college-auth-card .auth-title {
    color: var(--primary-color);
}

/* Employee Auth Card */
.emp-auth-card {
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 15px 50px rgba(255, 127, 80, 0.15);
}

.emp-auth-card .auth-title {
    color: var(--secondary-color);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-card-inner {
    display: flex;
    min-height: 600px;
}

/* Form Container */
.auth-form-container {
    flex: 1;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.auth-header {
    position: relative;
    margin-bottom: 30px;
}

.auth-restricted-badge {
    display: inline-block;
    background-color: #ff4d4d;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

.auth-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease forwards;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    animation: expandWidth 1s ease forwards 0.5s;
}

.auth-subtitle {
    color: var(--body-text-color);
    margin-bottom: 30px;
    animation: fadeIn 1s ease forwards 0.3s;
    opacity: 0;
}

/* Form Styles */
.auth-form {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 145, 0.2);
    outline: none;
}

.form-group input.input-error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

/* Password Input */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background-color: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.remember-me, .terms-checkbox {
    display: flex;
    align-items: center;
}

.remember-me input, .terms-checkbox input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.terms-checkbox a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.checkbox-error {
    color: #ff4d4d;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), #3d9a7e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 145, 0.3);
    margin-top: 10px;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.auth-button:hover {
    background: linear-gradient(135deg, #3d9a7e, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 145, 0.3);
}

/* Employee Auth Button */
.emp-auth-button {
    background: linear-gradient(135deg, var(--secondary-color), #e06a3f);
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.3);
}

.emp-auth-button:hover {
    background: linear-gradient(135deg, #e06a3f, var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
}

.auth-button:hover::before {
    left: 100%;
}

.button-text {
    margin-right: 10px;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

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

.auth-divider span {
    position: relative;
    background-color: white;
    padding: 0 15px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Auth Support */
.auth-support {
    text-align: center;
    animation: fadeIn 1s ease forwards 0.7s;
    opacity: 0;
}

.auth-support p {
    margin-bottom: 15px;
    color: var(--body-text-color);
}

.support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: rgba(76, 175, 145, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

/* Employee Support Link */
.emp-support-link {
    background-color: rgba(255, 127, 80, 0.1);
    color: var(--secondary-color);
}

.support-link i {
    margin-right: 8px;
}

.support-link:hover {
    background-color: rgba(76, 175, 145, 0.2);
    transform: translateY(-2px);
}

.emp-support-link:hover {
    background-color: rgba(255, 127, 80, 0.2);
}

/* Illustration */
.auth-illustration {
    flex: 1;
    background: linear-gradient(135deg, #4CAF91, #3d9a7e);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: white;
}

/* Employee Illustration */
.emp-auth-illustration {
    background: linear-gradient(135deg, #FF7F50, #e06a3f);
}

.illustration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.illustration-content img {
    max-width: 80%;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

.illustration-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.illustration-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.illustration-shape {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.illustration-shape::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.illustration-shape::after {
    content: '';
    position: absolute;
    top: 50px;
    left: -150px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Auth Features */
.auth-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-feature:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.auth-feature i {
    margin-right: 8px;
}

/* File Upload Styling */
.file-upload-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-upload-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background-color: rgba(76, 175, 145, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-button:hover {
    background-color: rgba(76, 175, 145, 0.2);
}

.file-upload-button input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    cursor: pointer;
    display: block;
}

.file-name {
    margin-left: 15px;
    color: var(--body-text-color);
    font-size: 0.9rem;
}

.image-preview-container {
    display: none;
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 77, 77, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.remove-image:hover {
    background-color: #ff4d4d;
}

.file-requirements {
    margin-top: 15px;
    background-color: rgba(76, 175, 145, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.file-requirements p {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.file-requirements ul {
    list-style-type: none;
    padding-left: 20px;
}

.file-requirements li {
    margin-bottom: 3px;
    color: var(--body-text-color);
    position: relative;
}

.file-requirements li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary-color);
}

/* Floating Particles Animation */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(76, 175, 145, 0.2);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    width: 15px;
    height: 15px;
    animation-duration: 25s;
    animation-delay: 0s;
    background-color: rgba(76, 175, 145, 0.15);
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    width: 20px;
    height: 20px;
    animation-duration: 30s;
    animation-delay: 1s;
    background-color: rgba(255, 127, 80, 0.1);
}

.particle:nth-child(3) {
    top: 70%;
    left: 10%;
    width: 12px;
    height: 12px;
    animation-duration: 22s;
    animation-delay: 2s;
    background-color: rgba(76, 175, 145, 0.1);
}

.particle:nth-child(4) {
    top: 30%;
    left: 50%;
    width: 18px;
    height: 18px;
    animation-duration: 28s;
    animation-delay: 3s;
    background-color: rgba(255, 127, 80, 0.15);
}

.particle:nth-child(5) {
    top: 80%;
    left: 30%;
    width: 14px;
    height: 14px;
    animation-duration: 20s;
    animation-delay: 4s;
    background-color: rgba(76, 175, 145, 0.12);
}

.particle:nth-child(6) {
    top: 20%;
    left: 70%;
    width: 16px;
    height: 16px;
    animation-duration: 26s;
    animation-delay: 5s;
    background-color: rgba(255, 127, 80, 0.08);
}

.particle:nth-child(7) {
    top: 60%;
    left: 40%;
    width: 13px;
    height: 13px;
    animation-duration: 24s;
    animation-delay: 6s;
    background-color: rgba(76, 175, 145, 0.1);
}

.particle:nth-child(8) {
    top: 50%;
    left: 90%;
    width: 17px;
    height: 17px;
    animation-duration: 32s;
    animation-delay: 7s;
    background-color: rgba(255, 127, 80, 0.12);
}

.particle:nth-child(9) {
    top: 90%;
    left: 60%;
    width: 11px;
    height: 11px;
    animation-duration: 18s;
    animation-delay: 8s;
    background-color: rgba(76, 175, 145, 0.14);
}

.particle:nth-child(10) {
    top: 15%;
    left: 45%;
    width: 19px;
    height: 19px;
    animation-duration: 27s;
    animation-delay: 9s;
    background-color: rgba(255, 127, 80, 0.1);
}

.particle:nth-child(11) {
    top: 75%;
    left: 25%;
    width: 14px;
    height: 14px;
    animation-duration: 23s;
    animation-delay: 10s;
    background-color: rgba(76, 175, 145, 0.08);
}

.particle:nth-child(12) {
    top: 35%;
    left: 85%;
    width: 16px;
    height: 16px;
    animation-duration: 29s;
    animation-delay: 11s;
    background-color: rgba(255, 127, 80, 0.14);
}

/* Signup Page Specific Styles */
.signup-section {
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.05), rgba(76, 175, 145, 0.05));
}

.signup-card {
    max-width: 1200px;
}

.signup-card .auth-illustration {
    background: linear-gradient(135deg, #FF7F50, #ff6a3c);
}

/* ===== ANIMATIONS ===== */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    0% {
        width: 0;
    }
    100% {
        width: 60px;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(0, 100px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .auth-card-inner {
        flex-direction: column;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-form-container {
        padding: 40px 30px;
    }
    
    .auth-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 60px 0;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 40px 0;
    }
    
    .auth-form-container {
        padding: 25px 15px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
    
    .auth-button {
        padding: 12px 16px;
    }
    
    .file-upload-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-name {
        margin-left: 0;
        margin-top: 8px;
    }
}
