﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

    /* Background image with overlay */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920&q=80');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -2;
    }

    /* Gradient overlay on background */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 180, 219, 0.85) 0%, rgba(0, 131, 176, 0.9) 100%);
        z-index: -1;
        animation: gradientPulse 15s ease-in-out infinite;
    }

@keyframes gradientPulse {
    0%, 100% {
        opacity: 0.85;
    }

    50% {
        opacity: 0.75;
    }
}


.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
    margin: 20px auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative header gradient */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00b4db 0%, #0083b0 50%, #00d4ff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.form-container {
    padding: 50px 40px 40px 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.form-header h2 {
    color: #2d3748;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #718096;
    font-size: 15px;
    font-weight: 400;
}

.tabs {
    display: flex;
    margin-bottom: 35px;
    background: #f7fafc;
    border-radius: 15px;
    padding: 6px;
    position: relative;
}

.tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    color: #718096;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

    .tab.active {
        color: white;
        background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
        box-shadow: 0 5px 15px rgba(0, 180, 219, 0.4);
    }

.form-content {
    display: none;
}

    .form-content.active {
        display: block;
        animation: fadeIn 0.5s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 10px;
        color: #2d3748;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.label-icon {
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #a0aec0;
    transition: all 0.3s;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.form-group select {
    padding-left: 48px;
    cursor: pointer;
}

    .form-group input:focus,
    .form-group select:focus {
        border-color: #00b4db;
        box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.15);
        background: #fefeff;
    }

        .form-group input:focus + .input-icon,
        .form-group select:focus ~ .input-icon {
            color: #00b4db;
            transform: translateY(-50%) scale(1.1);
        }

.form-group input.error {
    border-color: #fc8181;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    padding-left: 6px;
    font-weight: 500;
}

    .error-message.show {
        display: flex;
        align-items: center;
        gap: 5px;
        animation: slideDown 0.3s;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-toggle {
    position: relative;
}

    .password-toggle input {
        padding-right: 50px;
    }

.toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    font-size: 20px;
    transition: all 0.3s;
    user-select: none;
}

    .toggle-icon:hover {
        color: #667eea;
        transform: translateY(-50%) scale(1.1);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        cursor: pointer;
        accent-color: #00b4db;
    }

    .checkbox-group label {
        font-size: 13px;
        color: #4a5568;
        margin: 0;
        font-weight: 400;
    }

    .checkbox-group a {
        color: #00b4db;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
    }

        .checkbox-group a:hover {
            color: #0083b0;
            text-decoration: underline;
        }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 180, 219, 0.4);
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 180, 219, 0.5);
    }

    .submit-btn:active {
        transform: translateY(-1px);
    }

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #718096;
    font-size: 14px;
}

    .form-footer a {
        color: #00b4db;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
    }

        .form-footer a:hover {
            color: #0083b0;
        }

.success-message {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
    animation: slideDown 0.4s;
}

    .success-message.show {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .success-message::before {
        content: '✓';
        font-size: 24px;
        font-weight: bold;
    }

/* Strength meter for password */
.strength-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}

    .strength-meter.show {
        display: block;
    }

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-weak {
    background: #fc8181;
    width: 33%;
}

.strength-medium {
    background: #f6ad55;
    width: 66%;
}

.strength-strong {
    background: #48bb78;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        max-width: 100%;
        border-radius: 20px;
    }

    .form-container {
        padding: 40px 30px 30px 30px;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .form-header p {
        font-size: 14px;
    }

    .logo-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

    .tab {
        padding: 12px;
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        padding: 14px 14px 14px 45px;
        font-size: 14px;
    }

    .input-icon {
        font-size: 16px;
        left: 14px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .container {
        border-radius: 18px;
        margin: 0;
    }

    .form-container {
        padding: 35px 25px 25px 25px;
    }

    .form-header {
        margin-bottom: 30px;
    }

        .form-header h2 {
            font-size: 24px;
        }

        .form-header p {
            font-size: 13px;
        }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .tabs {
        margin-bottom: 25px;
        padding: 5px;
    }

    .tab {
        padding: 10px 8px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 20px;
    }

        .form-group label {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select {
            padding: 13px 13px 13px 42px;
            font-size: 13px;
        }

    .input-icon {
        font-size: 15px;
        left: 13px;
    }

    .toggle-icon {
        right: 13px;
        font-size: 18px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 14px;
    }

    .checkbox-group label {
        font-size: 12px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .error-message {
        font-size: 11px;
    }

    .form-footer {
        font-size: 13px;
        margin-top: 20px;
    }

    .success-message {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 30px 20px 20px 20px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .tab {
        font-size: 12px;
        padding: 9px 6px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 12px 12px 40px;
        font-size: 12px;
    }

    .input-icon {
        font-size: 14px;
        left: 12px;
    }
}

/* Landscape mode for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        margin: 10px auto;
    }

    .form-container {
        padding: 25px 30px;
    }

    .form-header {
        margin-bottom: 20px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .form-header h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .form-header p {
        font-size: 12px;
    }

    .tabs {
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .checkbox-group {
        margin-bottom: 15px;
    }
}

/* Tablets in portrait mode */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 500px;
    }
}

/* Large tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 520px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

    .modal-overlay.show {
        display: flex;
    }

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.4);
}

.modal-header h3 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-header p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f7fafc;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #718096;
}

    .close-modal:hover {
        background: #e2e8f0;
        color: #2d3748;
        transform: rotate(90deg);
    }

.modal-form-group {
    margin-bottom: 25px;
}

    .modal-form-group label {
        display: block;
        margin-bottom: 10px;
        color: #2d3748;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.modal-input-wrapper {
    position: relative;
}

    .modal-input-wrapper input {
        width: 100%;
        padding: 16px 16px 16px 48px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 14px;
        transition: all 0.3s;
        outline: none;
        background: white;
        font-family: 'Poppins', sans-serif;
    }

        .modal-input-wrapper input:focus {
            border-color: #00b4db;
            box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.15);
        }

    .modal-input-wrapper .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: #a0aec0;
        transition: all 0.3s;
    }

    .modal-input-wrapper input:focus + .input-icon {
        color: #00b4db;
        transform: translateY(-50%) scale(1.1);
    }

.modal-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 180, 219, 0.4);
    position: relative;
    overflow: hidden;
}

    .modal-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 180, 219, 0.5);
    }

    .modal-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.back-to-login {
    text-align: center;
    margin-top: 20px;
    color: #718096;
    font-size: 14px;
}

    .back-to-login a {
        color: #00b4db;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
    }

        .back-to-login a:hover {
            color: #0083b0;
        }

.reset-success {
    text-align: center;
    padding: 20px;
}

    .reset-success .success-icon {
        font-size: 60px;
        margin-bottom: 20px;
        animation: successPop 0.6s ease-out;
    }

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.reset-success h4 {
    color: #2d3748;
    font-size: 22px;
    margin-bottom: 10px;
}

.reset-success p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 25px;
        width: 95%;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .close-modal {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}
