﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 80%, rgba(120, 255, 120, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(25, 211, 102, 0.1) 0%, transparent 50%);
        animation: backgroundMove 20s ease-in-out infinite;
    }

@keyframes backgroundMove {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-10px) translateY(-10px);
    }

    50% {
        transform: translateX(10px) translateY(-5px);
    }

    75% {
        transform: translateX(-5px) translateY(10px);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 180px;
/*    background: linear-gradient(135deg, #25d366, #128c7e);*/
    border-radius: 20px;
    margin-bottom: 24px;
  /*  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);*/
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-container i {
    font-size: 36px;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #6b7280;
    font-size: 16px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 18px;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(249, 250, 251, 0.8);
    transition: all 0.3s ease;
    outline: none;
}

    .form-input:focus {
        border-color: #25d366;
        background: white;
        box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
    }

        .form-input:focus + .input-icon {
            color: #25d366;
        }

.password-toggle {
    position: absolute;
    right: 16px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 2;
}

    .password-toggle:hover {
        color: #25d366;
    }

.login-button {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

    .login-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: left 0.5s;
    }

    .login-button:hover::before {
        left: 100%;
    }

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 350px;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .notification.error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    margin-left: 12px;
    transition: opacity 0.2s ease;
}

    .notification-close:hover {
        opacity: 1;
    }

.security-info {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

    .security-info p {
        color: #6b7280;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .security-info i {
        color: #25d366;
    }


@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-input {
        padding: 14px 18px 14px 45px;
        font-size: 16px; 
    }

    .input-icon {
        left: 14px;
        font-size: 16px;
    }

    .password-toggle {
        right: 14px;
        font-size: 16px;
    }
}


@media (prefers-color-scheme: dark) {
    .login-container {
        background: rgba(31, 41, 55, 0.95);
        color: white;
    }

    .login-title {
        background: linear-gradient(135deg, #f9fafb, #d1d5db);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-group label {
        color: #d1d5db;
    }

    .form-input {
        background: rgba(55, 65, 81, 0.8);
        border-color: #4b5563;
        color: white;
    }

        .form-input:focus {
            background: #374151;
            border-color: #25d366;
        }
}
.secondary-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.secondary-button {
    flex: 1;
    text-decoration: none;
    display: block;
}

    /* Yan yana butonların yazı boyutunu küçültme */
    .secondary-button .button-content span {
        font-size: 13px; /* Ana giriş butonundan daha küçük */
        white-space: nowrap; /* Yazının alt satıra geçmesini engeller */
    }

    /* İkonların boyutunu da orantılı olarak küçültebiliriz */
    .secondary-button .button-content i {
        font-size: 13px;
    }

/* Responsive tasarım */
@media (max-width: 480px) {
    .secondary-buttons {
        flex-direction: column;
        gap: 8px;
    }

    /* Mobilde daha da küçük yapabiliriz */
    .secondary-button .button-content span {
        font-size: 12px;
    }

    .secondary-button .button-content i {
        font-size: 12px;
    }
}