* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url("Pics/net.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    margin: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 40px);
}

.auth-card {
    background-color: rgb(255, 255, 255);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(68, 127, 152, 0.15);
    border: 2px solid #447F98;
    padding: 25px 22px;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 42px;
    color: #447F98;
    margin-bottom: 8px;
}
.logo .app-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #447F98;
    box-shadow: 0 4px 12px rgba(68, 127, 152, 0.2);
    background-color: white;
    padding: 5px;
}
@media (max-width: 480px) {
    .logo .app-logo {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        object-fit: cover;
        padding: 3px;
    }
}

@media (max-width: 360px) {
    .logo .app-logo {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        object-fit: cover;
        padding: 3px;
    }
}
.card-header h1 {
    color: #447F98;
    font-size: 24px;
    margin-bottom: 4px;
    font-weight: 600;
}

.subtitle {
    color: #6298B5;
    font-size: 14px;
    line-height: 1.4;
}

.form-container {
    position: relative;
    width: 100%;
}

.auth-form {
    display: none;
    width: 100%;
    transition: all 0.3s ease;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #447F98;
    font-weight: 500;
    font-size: 13px;
    line-height: normal;
}

.form-group label i {
    margin-right: 6px;
    color: #6298B5;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #6298B5;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #F8FAFB;
    color: #333;
    line-height: normal;
    height: auto;
    min-height: 42px;
}

.form-group input:focus {
    outline: none;
    border-color: #6298B5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(98, 152, 181, 0.1);
}

.form-group input::placeholder {
    color: #A0B8C5;
    font-size: 13px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6298B5;
    transition: color 0.3s;
    font-size: 18px;
    z-index: 10;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    pointer-events: auto;
    line-height: 1;
    margin-top: 12px;
}

.password-toggle:focus,
.password-toggle:hover {
    color: #447F98;
    background: transparent;
    outline: none;
}

.password-toggle::-moz-focus-inner {
    border: 0;
}

.password-toggle i {
    font-size: 18px;
    color: inherit;
    line-height: 1;
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #447F98;
}

.remember-me input {
    margin-right: 6px;
    cursor: pointer;
    accent-color: #447F98;
    width: 16px;
    height: 16px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #447F98;
    line-height: 1.3;
}

.terms-checkbox input {
    margin-right: 8px;
    accent-color: #447F98;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.terms-link {
    color: #6298B5;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}

.terms-link:hover {
    text-decoration: underline;
    color: #447F98;
}

.forgot-password {
    color: #6298B5;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #447F98;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #447F98, #6298B5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.auth-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.auth-btn:hover {
    background: linear-gradient(to right, #3A6C82, #5385A1);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(68, 127, 152, 0.2);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #A0B8C5;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #DADEE1;
}

.divider span {
    padding: 0 12px;
    background-color: white;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
}

.social-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #DADEE1;
    background-color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #447F98;
}

.social-btn i {
    margin-right: 6px;
    font-size: 14px;
}

.social-btn.google:hover {
    background-color: #F8FAFB;
    border-color: #B9DBE1;
    transform: translateY(-1px);
}

.auth-toggle {
    text-align: center;
    font-size: 13px;
    color: #6298B5;
    margin-top: 16px;
}

.auth-toggle a {
    color: #447F98;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.auth-toggle a:hover {
    color: #3A6C82;
    text-decoration: underline;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 280px;
    font-weight: 500;
    font-size: 13px;
}

.message.success {
    background: linear-gradient(to right, #4CAF50, #43A047);
    color: white;
}

.message.error {
    background: linear-gradient(to right, #f44336, #e53935);
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-btn.loading {
    position: relative;
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 15px;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 2px solid #447F98;
    background: linear-gradient(to right, #447F98, #6298B5);
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 22px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #DADEE1;
    background-color: #F8FAFB;
    border-radius: 0 0 24px 24px;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(to right, #447F98, #6298B5);
    color: white;
}

.modal-btn-primary:hover {
    background: linear-gradient(to right, #3A6C82, #5385A1);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(68, 127, 152, 0.2);
}

.modal-btn-secondary {
    background-color: white;
    color: #447F98;
    border: 1px solid #447F98;
}

.modal-btn-secondary:hover {
    background-color: #F0F7FA;
    transform: translateY(-2px);
}

.terms-container {
    color: #333;
}

.terms-title {
    text-align: center;
    margin-bottom: 20px;
}

.terms-title h3 {
    color: #447F98;
    font-size: 18px;
    font-weight: 600;
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section h4 {
    color: #447F98;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.terms-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.form-step {
    transition: all 0.3s ease;
}

.upload-container {
    text-align: center;
    padding: 10px 0;
}

.upload-icon {
    font-size: 48px;
    color: #447F98;
    margin-bottom: 15px;
}

.upload-subtitle {
    color: #6298B5;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.file-upload-area {
    border: 2px dashed #6298B5;
    border-radius: 16px;
    padding: 30px 20px;
    background-color: #F8FAFB;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: #447F98;
    background-color: #E8F4F9;
    transform: translateY(-2px);
}

.file-upload-area i {
    font-size: 48px;
    color: #447F98;
    margin-bottom: 15px;
}

.file-upload-area p {
    font-size: 16px;
    font-weight: 500;
    color: #447F98;
    margin-bottom: 8px;
}

.file-types {
    font-size: 12px;
    color: #6298B5;
}

.file-upload-area.dragover {
    border-color: #447F98;
    background-color: #E8F4F9;
    transform: scale(1.02);
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F0F7FA;
    border: 1px solid #447F98;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.file-preview i {
    font-size: 24px;
    color: #447F98;
    margin-right: 12px;
}

.file-preview span {
    flex: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.remove-file {
    background: none;
    border: none;
    font-size: 24px;
    color: #f44336;
    cursor: pointer;
    padding: 0 8px;
    transition: transform 0.2s;
}

.remove-file:hover {
    transform: scale(1.2);
}

.upload-note {
    background-color: #FFF3E0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.upload-note i {
    color: #ff9800;
    font-size: 20px;
}

.upload-note span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.step-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0 10px;
}

.auth-btn-secondary {
    background: white;
    color: #447F98;
    border: 2px solid #447F98;
}

.auth-btn-secondary:hover {
    background: #F0F7FA;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(68, 127, 152, 0.1);
}

.auth-btn-secondary i {
    color: #447F98;
}

.forgot-password-modal .modal-content {
    max-width: 450px;
}

.verification-container {
    text-align: center;
    padding: 10px 0;
}

.verification-icon {
    font-size: 48px;
    color: #447F98;
    margin-bottom: 15px;
}

.verification-title {
    color: #447F98;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.verification-subtitle {
    color: #6298B5;
    font-size: 14px;
    margin-bottom: 25px;
}

.code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    border: 2px solid #B9DBE1;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #447F98;
    background: #F8FAFB;
    transition: all 0.3s;
}

.code-input:focus {
    outline: none;
    border-color: #447F98;
    box-shadow: 0 0 0 3px rgba(68, 127, 152, 0.1);
    background: white;
}

.code-input.error {
    border-color: #f44336;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.timer-container {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
}

.timer {
    font-weight: 600;
    color: #447F98;
}

.timer.expired {
    color: #f44336;
}

.resend-link {
    color: #6298B5;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}

.resend-link:hover {
    text-decoration: underline;
    color: #447F98;
}

.resend-link.disabled {
    color: #A0B8C5;
    cursor: not-allowed;
    pointer-events: none;
}

.password-requirements {
    background: #F8FAFB;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    font-size: 13px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #666;
}

.requirement-item i {
    font-size: 14px;
    width: 16px;
}

.requirement-item.valid {
    color: #2e7d32;
}

.requirement-item.valid i {
    color: #2e7d32;
}

.requirement-item.invalid {
    color: #c62828;
}

.requirement-item.invalid i {
    color: #c62828;
}

.email-sent-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.email-sent-message i {
    font-size: 20px;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        min-height: calc(100vh - 30px);
    }
    
    .auth-card {
        padding: 20px 18px;
    }
    
    .logo {
        font-size: 38px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .form-group input {
        padding: 11px 38px 11px 13px;
        font-size: 13px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 16px;
        width: 22px;
        height: 22px;
        margin-top: 10px;
    }
    
    .password-toggle i {
        font-size: 16px;
    }
    
    .auth-btn {
        padding: 13px;
        font-size: 14px;
    }
    
    .social-btn {
        padding: 11px 20px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .modal-header {
        padding: 15px 18px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .modal-footer {
        padding: 15px 18px;
    }
    
    .modal-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .terms-section h4 {
        font-size: 15px;
    }
    
    .terms-section p {
        font-size: 13px;
    }
    
    .file-upload-area {
        padding: 20px 15px;
    }
    
    .file-upload-area i {
        font-size: 40px;
    }
    
    .file-upload-area p {
        font-size: 14px;
    }
    
    .upload-note {
        padding: 10px 12px;
    }
    
    .upload-note span {
        font-size: 12px;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 10px;
    }
    
    .container {
        min-height: calc(100vh - 20px);
    }
    
    .auth-card {
        padding: 15px 15px;
    }
    
    .logo {
        font-size: 34px;
    }
    
    .card-header h1 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input {
        padding: 10px 35px 10px 12px;
    }
    
    .password-toggle {
        right: 10px;
        font-size: 15px;
        width: 20px;
        height: 20px;
        margin-top: 8px;
    }
    
    .password-toggle i {
        font-size: 15px;
    }
    
    .auth-btn {
        padding: 12px;
    }
    
    .social-login {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-btn {
        width: 100%;
        min-width: auto;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .code-input-container {
        gap: 5px;
    }
    
    .code-input {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-height: 900px) {
    body {
        padding: 15px;
    }
    
    .auth-card {
        padding: 25px 22px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input {
        padding: 13px 40px 13px 15px;
    }
    
    .auth-btn {
        padding: 15px;
    }
}

@media (min-height: 700px) {
    .auth-card {
        margin: 10px 0;
    }
}
/* New styles for multiple file uploads */
.uploads-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #447F98 #E8F4F9;
}

.uploads-container::-webkit-scrollbar {
    width: 6px;
}

.uploads-container::-webkit-scrollbar-track {
    background: #E8F4F9;
    border-radius: 12px;
}

.uploads-container::-webkit-scrollbar-thumb {
    background: #447F98;
    border-radius: 12px;
}

.uploads-title {
    color: #447F98;
    font-size: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.uploads-subtitle {
    color: #6298B5;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.upload-section {
    margin-bottom: 20px;
    background: #F8FAFB;
    border-radius: 12px;
    padding: 12px;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #447F98;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.upload-label i {
    color: #6298B5;
    font-size: 16px;
}

.required-star {
    color: #f44336;
    margin-left: 4px;
}

.upload-section .file-upload-area {
    padding: 15px;
    margin-bottom: 0;
}

.upload-section .file-upload-area i {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-section .file-upload-area p {
    font-size: 13px;
    margin-bottom: 4px;
}

.upload-section .file-preview {
    margin-bottom: 0;
    padding: 8px 12px;
}

.upload-section .file-preview i {
    font-size: 18px;
}

.upload-section .file-preview span {
    font-size: 12px;
}

/* Mobile responsiveness for multiple uploads */
@media (max-width: 480px) {
    .uploads-container {
        max-height: 50vh;
    }
    
    .upload-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .upload-label {
        font-size: 13px;
    }
    
    .upload-label i {
        font-size: 14px;
    }
    
    .upload-section .file-upload-area {
        padding: 12px;
    }
    
    .upload-section .file-upload-area i {
        font-size: 28px;
    }
    
    .upload-section .file-upload-area p {
        font-size: 12px;
    }
}
.form-group input.password-valid {
    border-color: #4CAF50 !important;
    background-color: #F0FFF0 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
}

.form-group input.password-invalid {
    border-color: #f44336 !important;
    background-color: #FFF0F0 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.form-group input.password-empty {
    border-color: #6298B5 !important;
    background-color: #F8FAFB !important;
    box-shadow: none !important;
}
