/* İHARS DENTAL - Giriş Sayfası Stilleri */
:root {
    --primary-color: #004b87;
    --primary-dark: #003666;
    --secondary-color: #00759e;
    --accent-color: #00a1c8;
    --light-color: #f5f8fa;
    --text-color: #2c3e50;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--light-color);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.login-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 40%;
    height: 100%;
    background-color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.login-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.login-title {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.login-form {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: var(--light-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.1);
    background-color: white;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    transform: translateY(-1.4rem);
    font-size: 0.75rem;
    color: var(--primary-color);
    background-color: white;
    padding: 0 0.25rem;
}

.icon-left {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: #64748b;
    z-index: 1;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input {
    margin-right: 0.5rem;
}

.login-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background-color: var(--primary-dark);
}

.login-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.login-button:hover::after {
    left: 100%;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider::before {
    margin-right: 0.5rem;
}

.divider::after {
    margin-left: 0.5rem;
}

.language-selector {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.languageFlag {
    border-radius: 50%;
    transition: all 0.3s;
}

.languageFlag:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--primary-color);
    font-size: 0.75rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.showcase {
    flex: 1;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.2" d="M0,160L48,160C96,160,192,160,288,186.7C384,213,480,267,576,272C672,277,768,235,864,213.3C960,192,1056,192,1152,192C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: waveAnimation 10s linear infinite;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.wave-2 {
    animation: waveAnimation 15s linear infinite;
    opacity: 0.5;
    height: 120px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.showcase-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.showcase-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--i) * 0.2s);
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Mobil cihazlar için duyarlı tasarım */
@media (max-width: 992px) {
    .showcase {
        display: none;
    }

    .login-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-header,
    .login-form,
    .login-footer {
        padding: 1.5rem;
    }

    .features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Login Notification Styles */
.login-notification {
    margin: 15px 0;
    display: none;
}

.login-success-notification,
.login-error-notification {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.5s ease forwards;
}

.login-success-notification {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.login-error-notification {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.login-success-notification .icon,
.login-error-notification .icon {
    font-size: 28px;
    margin-right: 15px;
}

.login-success-notification .icon {
    color: #10b981;
}

.login-error-notification .icon {
    color: #ef4444;
}

.login-success-notification .text h4,
.login-error-notification .text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.login-success-notification .text p,
.login-error-notification .text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Spinner Styles for Button */
.login-button .fa-spinner {
    margin-right: 8px;
}

/* Success animation */
.successful-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.successful-login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.successful-login-overlay .success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounceIn 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.successful-login-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.2s;
}

.successful-login-overlay p {
    font-size: 16px;
    opacity: 0.8;
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.3s;
}

.successful-login-overlay .loading {
    margin-top: 20px;
    width: 200px;
    height: 5px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.4s;
}

.successful-login-overlay .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #10b981;
    animation: loading 2s linear forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}