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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1000ff, #1b00ff 50%, #00ffa1 100%);
    min-height: 100vh;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.bg-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.bg-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.bg-shape:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-50px, 50px) rotate(240deg);
    }
}

/* Navbar - FROM CONTACT.HTML */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
    /* border-radius: 57px; */
    /* margin-top: 6px; */
    height: 80px;
}

.navbar-brand img {
    height: 95px;
    transition: transform 0.3s ease;
    width: 100px;
    margin-top: -15px;
    margin-left: -14px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* Auth Container */
.auth-section {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 50px 0;
    margin-top: 120px;
}

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-wrapper {
    display: flex;
    min-height: 600px;
    position: relative;
}

/* Form Side */
.form-side {
    flex: 1;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.form-container {
    position: relative;
    z-index: 2;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    animation: fadeIn 0.5s ease 0.3s backwards;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.6s;
}

.form-group:nth-child(2) {
    animation-delay: 0.7s;
}

.form-group:nth-child(3) {
    animation-delay: 0.8s;
}

.form-group:nth-child(4) {
    animation-delay: 0.9s;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s ease;
}

.form-control {
    padding: 15px 20px 15px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    outline: none;
}

.form-control:focus+.input-icon {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #667eea;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: fadeIn 0.5s ease 1s backwards;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    animation: fadeIn 0.5s ease 1.1s backwards;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.social-auth {
    display: flex;
    gap: 15px;
    animation: fadeIn 0.5s ease 1.2s backwards;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.switch-form {
    text-align: center;
    margin-top: 25px;
    color: #666;
    animation: fadeIn 0.5s ease 1.3s backwards;
}

.switch-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-form a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Info Side */
.info-side {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.info-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: pulse 4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.info-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.info-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.info-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.info-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.info-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.info-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    opacity: 0.95;
}

.info-features li i {
    font-size: 20px;
    color: #ffd700;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #667eea;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer - FROM CONTACT.HTML */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
}

/* Hidden class for form switching */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }

    #oop {
        padding: 51px 0 320px;

    }

    .info-side {
        order: -1;
        padding: 40px 30px;
    }

    .form-side {
        padding: 40px 30px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .info-title {
        font-size: 2rem;
    }

    .info-icon {
        font-size: 80px;
    }

    #navbarNav {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
        background: #ffffff;
    }

    #new {
        margin-top: -22px !important;
    }
}

/* Loading Animation */
.btn-auth.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
